package com.cskaoyan.controller.admin;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.admin.vo.DashboardVo;
import com.cskaoyan.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("admin")
public class DashboardController {
    @Autowired
    UserService userService;


    @RequestMapping("dashboard")
    public BaseRespVo dashboard(){
        DashboardVo dashboardVo = userService.selectDashboard();
        return BaseRespVo.ok(dashboardVo);
    }
}
